﻿using Bing.Biz.Payments.Alipay.Abstractions;
using Bing.Biz.Payments.Alipay.Configs;
using Bing.Biz.Payments.Alipay.Services.Base;
using Bing.Utils.Parameters;

namespace Bing.Biz.Payments.Alipay.Services
{
    /// <summary>
    /// 支付宝返回服务
    /// </summary>
    public class AlipayReturnService:AlipayNotifyServiceBase,IAlipayReturnService
    {
        /// <summary>
        /// 初始化一个<see cref="AlipayReturnService"/>类型的实例
        /// </summary>
        /// <param name="configProvider">配置提供器</param>
        public AlipayReturnService(IAlipayConfigProvider configProvider) : base(configProvider)
        {
        }

        /// <summary>
        /// 加载参数
        /// </summary>
        /// <param name="builder">参数生成器</param>
        protected override void Load(UrlParameterBuilder builder)
        {
            builder.LoadQuery();
        }

        /// <summary>
        /// 获取日志标题
        /// </summary>
        /// <returns></returns>
        protected override string GetCaption()
        {
            return "支付宝返回";
        }
    }
}
